#include"head.h"
void *func(void *arg){
    int fd;
    connection(&fd);
    transport_protocol_t *msg=(transport_protocol_t*)arg;
    transport_protocol_t temp_msg=*msg;

    send(fd,&temp_msg,sizeof(temp_msg),0);
    switch(msg->flag_work){
    case 5:
        sendFile(fd,msg);
        break;
    case 6:
        recvFile(fd,msg);
        break;
    }
    close(fd);
    printf("\n");
}
